<?php
define('IN_ADMIN',True);
require_once('../include/common.php');
require_once('../include/func_inc.php');
if ( !$_USER->id ) {
	show_msg('你还没有登录，请先登录', '../login.php', 1000);
}

global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."user a,".DB_TABLEPRE."user_view b WHERE a.id=b.uid and online='1' ORDER BY a.id ASC");
	while ($row = $db->fetch_array($query)) {
	if($row["sex"]=='男'){
	$sex='01';
	}elseif($row["sex"]=='女'){
	$sex='02';
	}else{
	$sex='';
	}
?>
<li style="list-style-type:none;">
<div class="ele_user">
<div class="ele_user_pic"><img width="30" height="30" src="../themes01/default/images/sex<?=$sex?>.gif"></div>
<div class="ele_user_txt clearfix">
<div class="ele_user_rel">

</div>
<p><span class="hy_dl"><a href="#"><img src="../themes01/default/images/u_zx1.gif" style="display:inline-block;margin-bottom:-4px;" title="跟<?=$row['name']?>在线聊天" /></a></span><a href="javascript:;" onClick="show_userback('sms_online','<?=$row['name']?>','<?=$row['phone']?>')" class="sl zoom"  ><?=$row['name']?></a><span class="c999 zoom"></span></p>
<p class="mt5"><!--<a href="#">在线聊天</a><span class="dotvline">┊</span> --><a href="javascript:;" onClick="show_userback('sms_online','<?=$row['name']?>','<?=$row['phone']?>')" class="sl zoom"  >发短消息</a><span class="dotvline">┊</span><a href="javascript:;" onClick="show_userback('phone_online','<?=$row['name']?>','<?=$row['phone']?>')" class="sl zoom"  >发手机短信</a></p>
</div>
</div>
</li>



<?php
}
?>